package com.cjl.admin.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author cjl
 * @version v1.0
 * @description TODO
 * @createTime 2023/2/19 10:40
 */

@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@ApiModel(value = "Admin", description = "管理员pojo")
@TableName("admin")
public class Admin {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("主键，唯一标识")
    private Integer id;

    @TableField("account")
    @ApiModelProperty("账号")
    private String account;

    @TableField("password")
    @ApiModelProperty("密码")
    private String password;

    @TableField("salt")
    @ApiModelProperty("盐值")
    private String salt;

    @TableField("name")
    @ApiModelProperty("昵称")
    private String name;

    @TableField("created_time")
    @ApiModelProperty("创建时间")
    private Date createdTime;

    @TableField("updated_time")
    @ApiModelProperty("最近一次修改时间")
    private Date updatedTime;

    @TableField("type")
    @ApiModelProperty("权限级别")
    private Short type;
}
